/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package serialize;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.ObjectInputStream;

public class Deserialize {
     public static void main (String args[]){
    
        try {
            FileInputStream fis =new FileInputStream("C://Temporario//teste.ser");//LOCALIZA UM DIRETORIO E CRIA UM ARQUIVO TIPO .ser PARA SALVAR OS TEXTOS
            ObjectInputStream ler = new ObjectInputStream(fis);
            System.out.println(ler.readObject());//METODO QUE LE O ARQUIVO
            ler.close();
            fis.close();
                    
            System.out.println("PRONTO");
        } catch (FileNotFoundException e) {
            System.out.println("ERRO FileNotFoundException");
        }catch (IOException e) {
             System.out.println("ERRO IOException");
        }catch (Exception e) {
             System.out.println("ERRO Exception");
        }
    }
}
